#include<bits/stdc++.h>
using namespace std;
int a[100002];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,ans;
    scanf("%d",&n);
    ans=n;
    for(int i=1;i<=n;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    int now=2;
    for(int i=1;i<n;i++)
    {
        for(int j=now;j<=n;j++)
        {
            if(a[i]<a[j])
            {
                ans--;
                now=j+1;
                break;
            }
            now=j+1;
        }
    }
    printf("%d",ans);
    fclose(stdin);
    fclose(stdout);
    return 0;
}
